<?php
/**
 * 关键词
 * Created by PhpStorm.
 * User: Yui
 * Date: 2017/5/13 0013
 * Time: 15:17
 */

namespace api\controllers;


use common\controllers\ApiCommonCtrl;
use common\services\KeywordSve;

class KeywordController extends ApiCommonCtrl
{
    public function actionInfo()
    {
        $KeywordSve = new KeywordSve();
        $rs = $KeywordSve->getInfo(['keyword_id' => 1]);
        if ($rs['code'] === 0) {
            $rs['data'] = explode(',', $rs['data']['Obj']->keyword);
        }
        return $rs;
    }
}